package com.czl.category.test.entity;

import java.io.Serializable;
import java.util.List;

public class QueryResult<T> implements Serializable{
  
	private static final long serialVersionUID = -2713204130900761269L;

	//private int firstResult;
	//private int maxResult;
//	private int pageNo;
//	private int pageSize;
	
	public QueryResult(){}
	
//	public QueryResult(int pageNo, int pageSize) {
//		//this.firstResult = firstResult;
//		//this.maxResult = maxResult;
//		this.pageNo = pageNo;
//		this.pageSize = pageSize;
//	}
	
	private List<T> resultList;
	
	private long totalRecord;

    public List<T> getResultList() {
        return resultList;
    }

    public void setResultList(List<T> resultList) {
        this.resultList = resultList;
    }

    public long getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(long totalRecord) {
        this.totalRecord = totalRecord;
    }

	@Override
	public String toString() {
		return "QueryResult [resultList=" + resultList + ", totalRecord=" + totalRecord + "]";
	}

	/*public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}*/

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	/*@Override
	public String toString() {
		return "QueryResult [pageNo=" + pageNo + ", pageSize=" + pageSize + ", resultList=" + resultList
				+ ", totalRecord=" + totalRecord + "]";
	}*/
    

    
    
	/*public int getFirstResult() {
		return firstResult;
	}

	public void setFirstResult(int firstResult) {
		this.firstResult = firstResult;
	}

	public int getMaxResult() {
		return maxResult;
	}

	public void setMaxResult(int maxResult) {
		this.maxResult = maxResult;
	}*/
    
}
